<table class="training">
    <?php if ($edit_view):?>
    <form method="post" accept-charset="utf-8" action="<?php echo site_url(uri_string())?>">
    <?php endif;?>
    <?php
    $data['seasons'] = $seasons;
    $data['season'] = $season;
    $data['edit_view'] = $edit_view;
    $data['training_types'] = $training_types;
    $this->load->view('training/training_header', $data);

    foreach ($players_to_show as $player) {
        $data['player'] = $players->where('player_id', $player)->get();
        $data['preferences_roles'] = $preferences_roles->where('id', $players->role_id)->get();
        $data['predictions'] = $predictions;

        if ($preferences_roles->show_on_training)
            $this->load->view('training/training_player', $data);
    }
    ?>
    <?php if ($edit_view):?>
        <div>
            <input type="submit" name="submit" value="<?php echo lang('label_save_changes');?>" class="save_button" />
        </div>
    </form>
    <?php endif;?>
</table>

<div id="box_high">
    <p class="title_high"><?php echo lang('training_description_title');?></p>

    <?php $predictor_img = '<img class="img_predictor" src="'.img_module('training_predictor.png').'" />';?>

    <div class="em"><?php echo lang('training_description_1', '<span class="title_high">', '</span>');?></div>
    <div class="em"><?php echo lang('training_description_2', $predictor_img);?></div>
    <div class="em"><?php echo lang('training_description_3');?></div>
    <div class="em"><?php echo lang('training_description_4');?></div>
    <div class="em"><?php echo lang('training_description_5');?></div>
    <img src="<?php echo img_theme('mcgannigan/mcgannigan_bla.png');?>"  class="preferences_mcgannigan" >
</div>    